package zelix.hack.hacks;

import zelix.hack.Hack;
import zelix.hack.HackCategory;
import zelix.value.Mode;
import zelix.value.ModeValue;
import net.minecraft.network.play.client.CPacketPlayer;
import zelix.hack.*;
import zelix.utils.system.Connection;

public class Disabler extends Hack {

    public ModeValue mode;

    public Disabler() {
        super("Disabler", HackCategory.COMBAT);
        this.mode = new ModeValue("Mode", new Mode("Hyt", true));
        this.addValue(mode);
    }

    @Override
    public String getDescription() {
        return "Hyt Disabler.";
    }

    @Override
    public boolean onPacket(Object packet, Connection.Side side) {
        if (packet instanceof CPacketPlayer) {
                return false;
        }else{
            return true;
        }
    }
}
